import actions from './actions'
import mutations from './mutations'

const state = {
  type: true // 整个项目的类型分别，true是普通登录，false是后台登录
}

const getters = {
  type: state => state.type,
  apiAddress: state => {
    return state.type ? process.env.API_URL : process.env.ADMIN_URL
  }
}

const app = {
  getters,
  state,
  actions,
  mutations
}

export default app
